#pragma once
typedef  unsigned short UINT16;
typedef  unsigned int UINT32;
class CDataConvert
{
public:
	CDataConvert(void);
	~CDataConvert(void);
	static UINT16 Char2ToUInt16(unsigned char cHigh,unsigned char cLow);

	static void UInt16ToChar2(UINT16 data,unsigned char&cHigh,unsigned char&cLow);

	static UINT32 Char4ToUInt32(unsigned char cHighHigh,unsigned char cHighLow,unsigned char cLowHigh,unsigned char cLowLow);
	
	static void UInt32ToChar4(UINT32 data,unsigned char& cHighHigh,unsigned char& cHighLow,unsigned char& cLowHigh,unsigned char& cLowLow);
	//
	//static string BSTRToString(BSTR Data);
	//
	//static string UUIDToString(boost::uuids::uuid data);
	//
	//static boost::uuids::uuid StringToUUID(string data);
	//
	//static boost::posix_time::ptime OleTimeToPTime(COleDateTime t);
	//
	//static COleDateTime PTimeToOleTime(boost::posix_time::ptime t);
	//
	//static string PTimeToString(boost::posix_time::ptime t);


};

